<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>


</head>
<body>

{template 'header.html'}








<div class="container">
	
    
    <div class="main">
    	
        
        <ul class="breadcrumb">
          <li><a href="{SITE_URL}">首页</a> <span class="divider">/</span></li>
          <li><a href="{url("?module=blog")}">博客</a> <span class="divider">/</span></li>
          <li class="active">{$title}</li>
        </ul>
        
        <div class="mod">
  
            <div class="body">
            	{username($userid)} :{$content}
                
             
                
                 <br/>
              <br/>
              
                <a href="?module=digg&action=support&blogid={$blogid}" class="button"><i class="icon-thumbs-up"></i>顶一下</a>
                <a href="?module=digg&action=against&blogid={$blogid}" class="button"><i class="icon-thumbs-down"></i>踩一下</a>
                <a class="button" href="?module=comment&keyid=content-content-title-{$r[contentid]}&verify={md5('content-content-title-'.$r[contentid].AUTH_KEY)}"><i class="icon-comment"></i>评论</a>
                {if $userid == $_userid || $_userid == 1}
                
                <a href="{url("?module=blog&action=edit&blogid=$r[blogid]")}" class="button"><i class="icon-edit"></i>修改</a>
                <a href="javascript:if(confirm('确定要删除吗？')) location='?module=blog&action=delete&blogid={$r[blogid]}'" class="button button-danger"><i class="icon-remove icon-white"></i>删除</a> 
              
                {/if}
                
                
                <br/>
              <br/>
                
                <div class="dropdown inline">
                    <div class="button-group inline">
                    <a class="button"><i class="icon-share"></i>分享</a>
                    <a class="button dropdown-toggle"><span class="caret"></span></a>
                    <ul class="dropdown-menu">
                      <li><a href="#">新浪微薄</a></li>
                      <li><a href="#">腾讯微薄</a></li>
                    </ul>
                  </div>
                </div>
                
                
            </div>
        </div>

 
        {php list($mod, $field, $value) = array('blog', 'blogid', $blogid);}
        {template 'load.html','comment'}
      
    
    
    <div class="mod">
    	<div class="head">常用操作</div>
        <div class="body">
        	{if isset($MODULE[error_report])}<a href="javascript:$('#errors').submit();">[错误报告]</a>{/if} 
            {if isset($MODULE[mail])}<a href="javascript:$('#sendmail').submit();">[推荐]</a>{/if} 
            <a href="member/collect.php?contentid={$contentid}&action=add">[收藏]</a>
            <a href="javascript:window.print();">[打印]</a> <a href="javascript:window.close();">[关闭]</a> 
            <a href="{SITE_URL}{$url}#top">[返回顶部]</a> 
        </div>
    </div>
        
  
   </div>
    
    
    <div class="aside">
  		
        <div class="mod">
        	<div class="head">返回</div>
            <div class="body">
               <a href="{url("?module=blog")}">返回博客首页</a>
            </div>
        </div>
        
        <div class="mod">
        	<div class="head">热门阅读</div>
            <ul class="body">
              <!--{get sql="select title,url,hits from table_blog order by hits desc" rows="10"}-->
                <li>({$r[hits]})&nbsp;<a href="{url($r[url])}">{$r[title]}</a></li>
              <!--{/get}-->
            </ul>
        </div>
       
    </div>
</div> 

<script language="javascript" src="?module=blog&action=count&blogid={$blogid}"></script>
{template 'footer.html'}